dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010da99
)
JSONContent: Use self() instead of explicit class name to support subclasses
author
Kunal Mehta
<legoktm@gmail.com>
Sat, 9 Aug 2014 11:02:33 +0000
(12:02 +0100)
committer
Kunal Mehta
<legoktm@gmail.com>
Sat, 9 Aug 2014 11:02:33 +0000
(12:02 +0100)
Change-Id: I957d6bda626b8e749a99717b5c89c4db38a36bf8
includes/content/JSONContent.php
patch
|
blob
|
history
diff --git
a/includes/content/JSONContent.php
b/includes/content/JSONContent.php
index
16bb279
..
f55467f
100644
(file)
--- a/
includes/content/JSONContent.php
+++ b/
includes/content/JSONContent.php
@@
-55,7
+55,7
@@
class JSONContent extends TextContent {
* @return JSONContent
*/
public function preSaveTransform( Title $title, User $user, ParserOptions $popts ) {
- return new
JSONContent
( $this->beautifyJSON() );
+ return new
self
( $this->beautifyJSON() );
}
/**